package com.qiy.springcloud.controller;

import com.qiy.springcloud.entities.CommonResult;
import com.qiy.springcloud.entities.Payment;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created on 2020/4/6.
 *
 * @author sehuaqi.
 * 描述：
 */
@Slf4j
@RestController
public class PaymentController {

    @Value("${server.port}")
    private String serverPort;


    @Resource
    private DiscoveryClient discoveryClient;

    @GetMapping(value = "/payment/zk")
    public String create() {

        return "springcloud with zookeeper " + serverPort;
    }


}
